package com.brkj.personalCenter;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.brkj.main.LoginActivity;
import com.brkj.main.R;
import com.brkj.model.DS_MyInfo;
import com.brkj.util.CheckUpdate;
import com.brkj.util.view.BaseActivity;

/**
 * Created by colin.ding on 2014/5/5.
 */

public class MoreActivity extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setAnimType(RIGHT_ENTER_LEFT_EXT);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.personal_more);

        setReturnBtn();
        setActivityTitle("更多");
    }

    public void gotoAboutMe(View v){
        showActivity(AboutMeActivity.class);
    }

    public void gotoChangePW(View v){
        showActivity(ChangePasswordActivity.class);
    }

    public void checkVersion(View v){
        new CheckUpdate(this, "from_aboutus").StartUpdate();
    }


    public void loginOut(View v){
        DS_MyInfo myInfo = new DS_MyInfo();
        myInfo.deleteInfo();

        Intent intent = new Intent(this, LoginActivity.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        startActivity(intent);
    }

}
